package io.github.lee.repository.jel.api

import android.graphics.pdf.PdfDocument
import io.github.lee.core.repository.data.Response
import io.github.lee.repository.jel.data.Page
import io.github.lee.repository.jel.domain.Item
import io.github.lee.repository.jel.domain.LoginResponse
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Url

interface UserApi {

    @POST
    suspend fun login(
        @Url url: String,
        @Body body: Map<String, String>
    ): Response<LoginResponse>

    @GET("/Users/{userId}/Views")
    suspend fun views(@Path("userId") userId: String):
            Response<Page<Item>>
}
